package com.tianma315.core.agent.service;

import com.baomidou.mybatisplus.plugins.Page;

import com.tianma315.core.agent.domain.AgentDO;
import com.tianma315.core.agent.vo.AgentVO;
import com.tianma315.core.common.base.CoreService;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.springframework.web.multipart.MultipartFile;


import java.util.List;

/**
 * 
 * <pre>
 * 经销商
 * </pre>
 * <small> 2019-08-02 09:28:15 | Wen</small>
 */
public interface AgentService extends CoreService<AgentDO> {
    List<AgentDO> getAgentByLevelId(Long levelId);

    Page<AgentVO> getAgentPage(Integer pageNumber, Integer pageSize, AgentDO agentDTO);

    Boolean addAgentVO(AgentVO agentVO);

    Boolean deleteAgentStatus(Long id, Integer status);

    Boolean UpdateAgentVO(AgentVO agentVO);

    AgentVO getAgentVOById(Long id);

    List<AgentDO> getAgentList(Long companyId);

    HSSFWorkbook exportAgent(Long merchantId);

   public void importAgent(MultipartFile file, Long merchantId, Long userId);
}
